003 configuring communications

大家好。
Hey guys.

现在让我们继续讨论通信。
Now let's go ahead and start looking at communications.

因此,如果您还记得每当我们创建此应用程序时,确实没有任何初始设置,您不必选择 APRC 或通信通道。
So if you remember whenever we created this application there really wasn't any initial setup you didn't have to select APRC or a communication channel.

没有那些东西。
None of that stuff.

这意味着您必须在事后才这样做。
That means you have to do it after the fact.

有几种方法可以做到这一点。
And there's a couple of ways to do it.

如果您使用的计算机物理连接到 PRC,您可以进入此摔跤企业进行通信设置,假设我们将创建一个新配置。
If you're on a computer that's physically connected to the PRC you can come in here to this wrestlings enterprise go into communications set up and let's say we're going to create a new configuration.

在这里我们可以创建一个设备快捷方式,所以我们将其称为我的 PLCC。
And here we can create a device shortcut so let's call it my PLCC.

然后在这里我们将从该列表中选择我们的 PSC。
And then over here we would select our PSC from this list.

当然,没有 PC,因为我们没有任何 PC 运行,即使我们在模拟 Lynx Enterprise 上加载程序,也不会与模拟驱动程序通信。
Well of course there are no PCs because we don't have any PCs running the bummer is even if we loaded up our program on emulate our s Lynx enterprise does not communicate with the emulate driver.

这都是罗克韦尔的,但罗克韦尔决定给我们的功能并不是有用的,因为他们似乎对他们的客户有一种我无法解释的敌意。
It's all Rockwell but it's just not useful functionality that Rockwell decided to give us because they really seem to have an sort of animosity with their customers I can't explain.

无论如何,如果我们有一个设备连接到计算机,我们可以在此处设置设备快捷方式并使用它来识别标签。
Anyway if we had a device connected to the computer we could set up a device shortcut here and use that to identify tags.

但既然我们不这样做,这并不是一件坏事,因为这将教会我们如何使用 OPC 服务器。
But since we don't this isn't a bad thing because this is going to teach us how to use OPC servers.

我将回到这里,查看几个带有我们项目名称的图标。
I'm going to come back over here into a couple of icons that have the name of our project.

其中一个上面有一点红色。
One of them has a little bit of red on it.

而另一个则不然。
And the other one doesn't.

所以我们将采用那个没有的。
So we're going to take that one that doesn't.

那是有点高了。
That's a little bit higher up.

我将右键单击它并选择添加新闻服务器。
I'm going to right click on that and select Add a news server.

在这种情况下,我将使用 OPEC 数据服务器。
And in this case I'm going to go with an OPEC data server.

所以我必须给我的数据服务器一个名称。
So I've got to give my data server a name.

我为什么不干脆称其为欧佩克呢?
Why don't I just call it OPEC.

这听起来很简单,然后我的服务器托管在本地计算机还是远程计算机上。
That sounds simple enough and then is my server hosted on the local computer or a remote computer.

好吧,它将就在这台计算机上,所以是本地的,然后是 OPEC 服务器名称,我只需浏览即可。
Well it's going to be right here on this computer so local and then OPEC server name I'll just browse for that.

在此列表中,有 RSS 链接 OPEC 服务器。
And right here in this list is RSS links OPEC server.

您还记得当我们谈论 OPEC 服务器时,我告诉过您我们将为此使用 RSS 链接。
And you remember from when we were talking about OPEC servers I told you we'd be using RSS links for that.

好吧,我们开始吧。
Well here we go.

所以我就直接点击“确定”。
So I'll just go ahead and hit OK.

点击应用。
Hit apply.

点击“确定”。
Hit OK.

现在我们已经建立了一些通信。
And now we've got some communications set up.

因此,我需要做的下一件事是我可以运行模拟并在后台运行 RSS 链接,以便有新闻链接,我将继续加载我的项目。
So the next thing I need to do is I can get emulate running and get RSS links running in the background so there's press links and I will go ahead and load up my project.

PLCC 3 我会给它我著名的第一站。
PLCC 3 I'll give it my famous station number one.

现在我已经在模拟中运行了这个,我将返回这里进入 RSS 链接并出现在顶部,我已经得到了这个 DDE OPEC。
And now that I have this running in emulate I'm going to go back over here into RSS links and appear on the top I've got this DDE OPEC.

好吧,我们现在不担心DD。
Well we're not worried about DD right now.

这就是我们在 Pierre C-2 中经历过的事情。
That's something that we went through in Pierre C-2.

如果您已经学习过实用的 PLCC 编程,那么我们现在将要与 OPEC 打交道。
If you've taken practical PLCC programming now we're going to be dealing with OPEC.

那么我们来看看主题配置。
So let's look at topic configuration.

我们已经在这个 PLCC 3 中自动创建了这个,并且它链接到正在运行我们的程序的仿真器,因此这正是我们想要的,只是为了确保它在那里。
And we've automatically got this created right here this PLCC 3 and that's linked to our emulate that's running our programs so that's exactly what we want just to make sure that that's in there.

现在我们已经知道了,让我们继续离开这里吧。
So now that we've got that let's go ahead and close out of here.

这告诉我们,我们将能够从正在运行的程序内部访问我们的数据。
And that tells us that we're going to be able to access our data from inside of the running program.

到那时,我们可以继续并中断此操作,因为这确实是您在下一堂课中需要了解的有关配置通信延迟的全部内容。
And at that point we can go ahead and break this off because that's really all you need to know about configuring communications putback in the next lecture.

我们将考虑设置一些标签,这不会花费我们很长时间。
And we're going to be looking at setting up some tags which is not going to take us very long.

所以看那
So see that